/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Lab;

import Map.Map;
import Map.MapLevel;
import java.io.FileNotFoundException;
import java.io.IOException;
import net.slashie.libjcsi.ConsoleSystemInterface;
import net.slashie.libjcsi.wswing.WSwingConsoleInterface;

/**
 *
 * @author insane
 */
public class Main {

    /**
     * @param args the command line arguments
     */
    public static ConsoleSystemInterface csi = new WSwingConsoleInterface("game", true);

    public static void main(String[] args) throws FileNotFoundException, IOException, ClassNotFoundException {

        Map map = MapLevel.getInstance().getMap();
        map.createMap();


        Main.csi.cls();
        Main.csi.saveBuffer();
        
        boolean exit = false;

        while (!exit) {


            Main.csi.cls();
            Main.csi.restore();

            map.drawMap();

            int key = Main.csi.inkey().code;

            map = MapLevel.getInstance().getMap();
        }

    }
}
